package com.up1234567.unistarcloud.demo.web.task;

import com.up1234567.unistar.springcloud.task.IUnistarTasker;
import lombok.CustomLog;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@CustomLog(topic = "WebTasker")
@Component
public class DayRateCalcTask implements IUnistarTasker {

    @Override
    public String task() {
        return "day_rate_calc";
    }

    @Override
    public Map<String, Object> handle(Map<String, Object> params) {
        if (params == null) params = new HashMap<>();
        log.debug("我是来自上一个任务的参数: {}", params);
        return null;
    }

}
